<%@ page language="java" isELIgnored="false" import="java.util.*"
	pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt"%>
<%  
  response.setHeader("Cache-Control","no-cache"); //Forces caches to obtain a new copy of the page from the origin server
  response.setHeader("Cache-Control","no-store"); //Directs caches not to store the page under any circumstance
  response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
  response.setHeader("Pragma","no-cache"); //HTTP 1.0 backward compatibility
  String baseURL = request.getContextPath();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>抓取任务监控</title>
<script type="text/javascript" src="<%=request.getContextPath() %>/fare/js/jquery-1.6.4.min.js"></script>
<link href="<%=request.getContextPath()%>/fare/css/base.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/fare/lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
<script src="<%=request.getContextPath()%>/fare/js/show.js" type="text/javascript" ></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/fare/js/datePicker/WdatePicker.js"></script>
<script src="<%=request.getContextPath()%>/fare/js/datePicker/WdatePicker.js" type="text/javascript" ></script>
<script src="<%=request.getContextPath()%>/fare/js/ligerUI/js/ligerui.min.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/fare/js/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/fare/js/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/fare/js/ligerUI/js/plugins/ligerTextBox.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/fare/js/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/fare/js/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/fare/js/ligerUI/js/plugins/ligerSpinner.js" type="text/javascript"></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/fare/js/json2.js'></script>

<script type="text/javascript" src="<%=request.getContextPath()%>/fare/js/datePicker/WdatePicker.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/fare/js/vtip.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/jsFile/fdc.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath() %>/jsFile/wait/js/wait.js"></script>	
<script type='text/javascript' src='<%=request.getContextPath()%>/fare/js/cityquery/citylist.js'></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/fare/js/cityquery/querycity.js'></script>
<link href='<%=request.getContextPath()%>/fare/js/cityquery/cityquery.css' rel="stylesheet" type="text/css" />
<link rev="stylesheet" media="all" href="<%=request.getContextPath() %>/fare/css/form_style.css" type="text/css" rel="stylesheet">

<!-- 圆角文本框 -->
<link href="<%=request.getContextPath() %>/fare/css/htc/htc.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath() %>/fare/css/vtip.css" rel="stylesheet" type="text/css" />
<style type="text/css">
	.showTable td,.showTable th{
		border: 1px solid #B1CDE3;  
		font-size: 0.8em; 
        padding:3px;   
        margin:3px;  
        border-collapse:collapse; 
        text-align: center; 
	}



</style>

<script type="text/javascript">
function currentDate(){ 
    var now = new Date();       
    var year = now.getFullYear();
    var month = now.getMonth() + 1;
    var day = now.getDate();
   
    var today = year + "-";       
    if(month < 10)
        today += "0";       
    today += month + "-";       
    if(day < 10)
        today += "0";           
    today += day;       
    return(today); 
} 

function currentDate1(){ 
    var now = new Date();       
    var year = now.getFullYear();
    var month = now.getMonth() + 1;
    var day = now.getDate();
    var hour = now.getHours();
    var today = year + "-";       
    if(month < 10)
        today += "0";       
    today += month + "-";        
    if(day < 10)
        today += "0";           
    today += day;       
    return(today+=" "+hour); 
}
	$(document).ready(function(){
		$('#depCity').querycity({'data':citysFlight,'tabs':labelFromcity,'hotList':hotList});
		$('#arrCity').querycity({'data':citysFlight,'tabs':labelFromcity,'hotList':hotList});
	
		$('#startTime').val(currentDate()+" 00");
		$('#endTime').val(currentDate1());
		$('#flightTime').val(currentDate());
	
	
	
	});
	
	
	var v1,v2,v3;
	var isreflush=function compareSelectValue(i,o1,o2,o3){
		  if(v1!=o1||v2!=o2||v3!=o3){
				 v1=o1;
		    	 v2=o2;
		    	 v3=o3;
				return true;
			}
				 v1=o1;
		    	 v2=o2;
		    	 v3=o3;
			return false;
	}

	var i=1;
	function loadFlightNo(){
	 	var depCity=$("#depCity").val();
	 	var arrCity=$("#arrCity").val();
	 	var depCityCode=$("#depCityCode").val();
	 	var arrCityCode=$("#arrCityCode").val();
	 	var carrier=$("#carrier").val();
	 	
		
		
	 	if(depCity!="中文/拼音"&&arrCity!="中文/拼音"&&carrier!=""){
	 		var bool= isreflush(i,depCity,arrCity,carrier);
	 		if(bool){
			    		$.ajax({
			                  url : 'commonAction!outCityFlightNo2.action',
			                  data : {'depCity':depCity,'arrCity':arrCity,'carrier':carrier,'depCityCode':depCityCode,'arrCityCode':arrCityCode},
			                  type : "POST",
			                  dateType:'json',
			                  beforeSend : function(XMLHttpRequest) {// 提交之前的处理代码放在此处,可空着
			                                    
			                  },
			                  success : function(data) {
			                	  document.getElementById("flightNumber").innerHTML="";
	 		                	  if(data==""||data==null){
	 		                		 $("#flightNumber").html("<option value=''>--选 择--</option>");
	 		                		  return ;
	 		                	  }
	 		                	 $("#flightNumber").html("<option value=''>--选 择--</option>");
			                	  var unitys_str=data.split("#");
			                	 	
			                	  for(var i=0;i<unitys_str.length;i++){
			                		  var s_unity=unitys_str[i];
			                		  if(s_unity!="" || s_unity!=null){
			                			  var opt=document.createElement("OPTION");
			                			  document.getElementById("flightNumber").options.add(opt);
			                			    opt.value=s_unity;
			                			    opt.text=s_unity;
			                		   }
			                	  }
			                	  document.getElementById("flightNumber").options[0].selected=true;
			                  },
			                  error : function(data) {
			                        alert('提示', '数据超时或错误,请重新提交');
			                  }
			            });
	 		}
	 	}
	 	i++;
	 }
	function toDecimal(x) {  
	    var f = parseFloat(x);  
	    if (isNaN(f)) {  
	        return;  
	    }  
	    f = Math.round(x*100)/10;  
	    return f+"%";  
	} 
	/* function toDecimal(x) {  
	    var f = parseFloat(x);  
	    if (isNaN(f)) {  
	        return;  
	    }  
	    f = Math.round(x*100)/100;  
	    return f;  
	}  */
	$("#depCity").live('click', function() {
		loadFlightNo();
	});
	$("#arrCity").live('click', function() {
		loadFlightNo();
	});
</script>

</head>

<body>
<div class="form_table_tltle">查询条件 </div>

<form id="taskRecordForm" action="taskMonitoringAction!toQuerytoTaskMonitoringJSP.action" method="post">
<TABLE cellspacing="0" cellpadding="0" width="100%" border="0" class="form_table">

  <TBODY>
  
   
  
  <TR class="tab">
    <TD width="120" class="left" style="text-align:left">航&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;段：</TD>
    <TD width="40%">
			
					<%-- <span>从 </span> 
							<input id='depCity' name="depCity" type='text' onclick="loadFlightNo()" value='' style="width: 102px" value="${vo.fromCity }" /> 
							<span>到</span> 
							<input id='arrCity' name="arrCity" type='text' onclick="loadFlightNo()" value='' style="width: 102px" value="${vo.toCity }"/><font color="red" >*</font>
							<span style="color: #ff0000">*</span><br /> --%>
						<jsp:include page="../inc/flightSelect.jsp">
						    <jsp:param value="${fromCity}" name="fromCity"/>
						    <jsp:param value="${fromCityCode}" name="fromCityCode"/>
						    <jsp:param value="${toCity}" name="toCity"/>
						    <jsp:param value="${toCityCode}" name="toCityCode"/>
 						</jsp:include> 	
						
					</TD>
					  <TD width="120" class="left" style="text-align:left">航空公司：&nbsp;&nbsp;</td>
    <td>
    
  	 <select name="carrier"  onchange="loadFlightNo()" style="width: 150px;" id="carrier">
		<option value="" selected="selected">--请选择--</option>
							<c:choose>
			<c:when test="${uggsourceList == null}">
			</c:when>
			<c:otherwise>
				<c:forEach var="item" items="${uggsourceList }">
					<option value="${item.hbaseKey}" 
					<c:if test="${item.hbaseKey==carrier}">selected='selected' 
					</c:if> >${item.name}</option>
				</c:forEach>
			</c:otherwise>
		</c:choose>
	</select><font color="red" >*</font>
  	</TD>
   
  </TR>
  
  <TR class="tab">
    <TD  width="120" class="left" style="text-align:left">抓取时间段：</TD>
    <TD>
    <span>从 </span>
      <input id="startTime" name="startTime" type="text" id="text2" style="width: 100px;"  onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH'})">
      <span>到</span>
      <input id="endTime" name="endTime" type="text" id="text2" style="width: 100px;"  onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH'})"><font color="red" >*</font>
    </TD>
  
   
    <TD  width="120" height="26" class="left" style="text-align:left">航班日期：</TD>
    <TD>
      <input id="flightTime" name="flightTime" type="text" id="text2" style="width: 100px;"  onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"><font color="red" >*</font>
    
    </TD>
  </TR>
  <!-- <TR class="tab">
    <TD  width="120" class="left" style="text-align:left">抓取小时段：</TD>
    <TD colspan="3">
  		<input type="checkbox" value="00" name="time">00
  		<input type="checkbox" value="01" name="time">01
  		<input type="checkbox" value="02" name="time">02
  		<input type="checkbox" value="03" name="time">03
  		<input type="checkbox" value="04" name="time">04
  		<input type="checkbox" value="05" name="time">05
  		<input type="checkbox" value="06" name="time">06
  		<input type="checkbox" value="07" name="time">07
  		<input type="checkbox" value="08" name="time">08
  		<input type="checkbox" value="09" name="time">09
  		<input type="checkbox" value="10" name="time">10
  		<input type="checkbox" value="11" name="time">11
  		<input type="checkbox" value="12" name="time">12
  		<input type="checkbox" value="13" name="time">13
  		<input type="checkbox" value="14" name="time">14
  		<input type="checkbox" value="15" name="time">15
  		<input type="checkbox" value="16" name="time">16
  		<input type="checkbox" value="17" name="time">17
  		<input type="checkbox" value="18" name="time">18
  		<input type="checkbox" value="19" name="time">19
  		<input type="checkbox" value="20" name="time">20
  		<input type="checkbox" value="21" name="time">21
  		<input type="checkbox" value="22" name="time">22
  		<input type="checkbox" value="23" name="time">23
  		<input type="checkbox" value="all" name="time">全选
    </TD>
  
  
  </TR> -->
  <TR class="tab">
   <TD width="120" class="left" style="text-align:left">航&nbsp;&nbsp;&nbsp;&nbsp;班&nbsp;&nbsp;&nbsp;&nbsp;号：&nbsp;&nbsp;</td>
    <td>
  	  <select name="flightNumber" id="flightNumber"  onmouseover="loadFlightNo()" >
  <c:if test="${not empty flightNumber }">
       <option value="${flightNumber }">${flightNumber }</option></c:if>
       <c:if test="${empty flightNumber }">
	    <option value="">--选 择--</option></c:if>
	    </select>
  	</TD>
   <TD width="90" class="left" style="text-align:left">数据来源：</TD>
    <TD colspan="3">
    				<select class="easyui-combobox" name="grabChannel" style="width: 150px;" id="grabChannel">
							
							<option value="航空公司官网" selected="selected">航空公司官网</option>
							<option value="00001">淘宝旅游网</option>
							<option value="00002">去哪儿网</option>	
                            <option value="00003">携程网</option>
                            <option value="00004">艺龙网</option>		
                            <option value="00005">一起飞</option>		
					</select><font color="red" >*</font>
					
					<%-- <span style="color: #ff0000">*</span> --%> 
					</TD>
  </TR>
  <TR class="tab">
    <TD colspan="4" style="text-align:center;height:35px;">
      <input type="button" name="Submit3" value="查询" id="monitorSubmit"   style="width:80px">
    </TD>
  </TR>
</TBODY>
</TABLE>
</form>
<p></p>
<div id="maingrid" style="margin-top:20px"></div>
<div style="width: 1000;height:300;"></div>
</body>
<script type="text/javascript">
var columns=[ 
			{  display : '序号',	width:  50, 
				render:function(item,index)
				   {return (index+1);}
		    }, 
			{display : '区域(编号)  ',width : 65,render: function (row)
                {
	        	    if(row.areaName&&row.areaName!=null){
	        	    	return row.areaName+"("+row.areaCode+")";
	        	    }else{
	        	    	return '';
	        	    }
	    			
         	    }
		    },
			
			{display : '航空公司 ',	width : 100,render: function (row)
                {
	        	    if(row.carrierFullName&&row.carrierFullName!=null){
	        	    	return row.carrierFullName+"("+row.carrierKey+")";
	        	    }else{
	        	    	return '';
	        	    }
    			
     	    	}
		    },{display : '抓取时间',	width : 140,render: function (row)
                {
		    	
        	    if(row.grabDate && row.grabDate!=null){
        	    	return row.grabDate.substring(0, 10);
        	    	/* var date = new Date(row.grabDate);
        	       return	date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()+" "+date.getHours(); */
        	    }else{
        	    	return '';
        	    }
			
 	    	}
	    },
			/* {display : '航空公司编号 ',	width : 80,		name : 'carrierKey'}, */
			{display : '网站名称(编号) ',width :100,		name : 'grabChannel',
				   render: function (row)
                   {  
           		   if(row.grabChannel !='' && row.grabChannel != null){
     
						   return  row.grabChannel+'('+row.grabChannelId+')'
           		   }else{
           			   return '';
           		   }
           		 
              }},
			/* {display : '网站名称ID',width : 80,		name : 'grabChannelId'}, */
		/* 	{display : '数据来源编号',width :80,		name : 'grabChannelNum'}, */
			
			{display : '航班时间 ',width : 75,	    name : 'flightBatchDate'}, 
			{display : '航班号  ',width : 60,	name : 'flightId'},
			{display : '出发城市  ',width : 70,		name : 'fromCityName',
				   render: function (row)
                   {  
           		   if(row.fromCityName !='' && row.fromCityName != null){
     
						   return  row.fromCityName+'('+row.fromCity+')'
           		   }else{
           			   return '';
           		   }
           		 
              }},
		/* 	{display : '出发城市编号  ',width : 80,		name : 'fromCity'}, */
			{display : '到达城市 ',width : 70,		name : 'toCityName',
				   render: function (row)
                   {  
           		   if(row.toCityName !='' && row.toCityName != null){
     
						   return  row.toCityName+'('+row.toCity+')'
           		   }else{
           			   return '';
           		   }
           		 
              }},
		/* 	{display : '到达城市编号',width : 80,		name : 'toCity'}, */
			{display : '高价',width : 45,		name : 'highPrice'},
			{display : '低价',width : 45,		name : 'lowerPrice'},
			{display:'rowkey',width:380,name:'source_ROWKEY'},
			{display : '更多价格',width :60 ,render:function(row){
				var cabinsLength = row.cabins.length;	
				var info = '';
				var tableStr = '<table class='+'showTable'+'>';
				if(cabinsLength && cabinsLength>0){
					tableStr += '<th>舱位名称</th>'+'<th>编号</th>'+'<th>价格</th>'+'<th>折扣</th>'+'<th>类型</th>'+'<th>服务</th>';
					for(var i = 0 ; i < cabinsLength ; i++){
						tableStr += '<tr>';
						
						tableStr += '<td>'+(row.cabins[i].cabinName==null?'':row.cabins[i].cabinName)+'</td>';
						tableStr += '<td>'+(row.cabins[i].cabinNo==null?'':row.cabins[i].cabinNo)+'</td>';
						tableStr += '<td>'+(row.cabins[i].price==null?'':row.cabins[i].price)+'</td>';
						var rebate = "";
						if(standardPrice == '1'){ 
							 rebate = "未知";
							 tableStr += '<td>'+rebate+'</td>';
						 }else{
							 rebate  = row.cabins[i].price/parseFloat(standardPrice)*10;
							 tableStr += '<td>'+(row.cabins[i].price==null?'':toDecimal(rebate))+'</td>';
						 }
						
						
						tableStr += '<td>'+(row.cabins[i].cabinType==null?'':row.cabins[i].cabinType)+'</td>';
						tableStr += '<td>'+(row.cabins[i].cabinServer==null?'':row.cabins[i].cabinServer)+'</td>';
						
						tableStr += '</tr>';
						/* info +='仓位名称:'+ row.cabins[i].cabinName + '  ';
						info +='编号:'+ row.cabins[i].cabinNo +'  ';
						info +='价格:'+ row.cabins[i].price +'  ';
						info += '折扣:'+row.cabins[i].cabinRebate + '  ';
						info += '服务:'+row.cabins[i].cabinServer + '  ';
						info += '<br>'; */
					}
					tableStr +='</table>';
				}
				
				
     			var transitLength = row.transit.length;
     			
				if(transitLength && transitLength>0){
					if(tableStr && tableStr!=''){
						tableStr += '<br>';
					}
					tableStr +=  '<table class='+'showTable'+'>';
					tableStr += '<th>中转承运</th>'+'<th>最高</th>'+'<th>最低</th>'+'<th>起飞</th>'+'<th>到达</th>'+'<th>出发地</th>'+'<th>目的地</th>';
					for(var j = 0 ; j< transitLength ; j++){
						tableStr += '<tr>';
						tableStr += '<td>'+row.transit[j].transitName+'</td>';
						tableStr += '<td>'+row.transit[j].hightPrice+'</td>';
						tableStr += '<td>'+row.transit[j].lowerPrice+'</td>';
						tableStr += '<td>'+row.transit[j].startTime+'</td>';
						tableStr += '<td>'+row.transit[j].endTime+'</td>';
						tableStr += '<td>'+row.transit[j].fromAir+'</td>';
						tableStr += '<td>'+row.transit[j].toAir+'</td>';
						tableStr += '</tr>';
						
						
						/* info +='中转承运:'+ row.transit[j].transitName + '  ';
						info +='最高:'+    row.transit[j].hightPrice +'  ';
						info +='最低:'+ row.transit[j].lowerPrice +'  ';
						info +='起飞:'+ row.transit[j].startTime +'  ';
						info +='到达:'+ row.transit[j].endTime +'  ';
						info += '出发地:'+row.transit[j].fromAir + '  ';
						info += '目的地:'+row.transit[j].toAir + '  ';
						info += '<br>'; */
					}
					tableStr += '</table>';
				}
				
				var returnTripLength = row.returnTrip.length;
				//alert(returnTripLength);
				if(returnTripLength && returnTripLength > 0){
					if(tableStr && tableStr!=''){
						tableStr += '<br>';
					}
					tableStr +=  '<table class='+'showTable'+'>';
					tableStr += '<th>航空公司</th>'+'<th>航班号</th>'+'<th>航班日期</th>'+'<th>出发机场</th>'+'<th>到达机场</th>'+'<th>出发地</th>'+'<th>目的地</th>'+'<th>往返价格</th>';
					 for(var j = 0 ; j< returnTripLength ; j++){
						tableStr += '<tr>';
						tableStr += '<td>'+row.returnTrip[j].carrierName+'</td>';
					 	tableStr += '<td>'+row.returnTrip[j].flightNo+'</td>';
						tableStr += '<td>'+row.returnTrip[j].flightDate+'</td>';
						tableStr += '<td>'+row.returnTrip[j].fromAir+'</td>';
						tableStr += '<td>'+row.returnTrip[j].toAir+'</td>';
						tableStr += '<td>'+row.returnTrip[j].fromCityName+'</td>';
						tableStr += '<td>'+row.returnTrip[j].toCityName+'</td>';			
						tableStr += '<td>'+row.returnTrip[j].totalPrice+'</td>'; 
						tableStr += '</tr>';
					
					} 
					tableStr += '</table>';
					
					
					
					
				}
				
				
				return '<a href="javascript:void(0);" class="vtip" title="'+tableStr+'">更多价格</a>';	
			}}
			
			];
			
	//查询任务
    $(function(){
	   $("#monitorSubmit").click(
		 function (){
			
			 	/* var flightNumber=$("#flightNumber").val();
				var depCity=$("#depCity").val();
				var arrCity=$("#arrCity").val();
				var flightTime=$("#flightTime").val();
				var grabChannel=$("#grabChannel").val();
				var carrier=$("#carrier").val();
				var startTime = $("#startTime").val();
				var endTime = $("#endTime").val();
				var time =  */
				if(depCity==""||depCity=='中文/拼音'){
					$.ligerDialog.question('航线出发城市不能为空!');
					return ;
				}
				if(arrCity==""||arrCity=='中文/拼音'){
					$.ligerDialog.question('航线到达城市不能为空!');
					return ;
				}
				if(carrier == "") {
					$.ligerDialog.question('航空公司不能为空!');
					return ;
				}
				if(grabChannel==""){
					$.ligerDialog.question('数据来源不能为空！');
					return ;
				}
				if(startTime==""){
					$.ligerDialog.question('抓取时间段不能为空!');
					return ;
				}
				if(endTime==""){
					$.ligerDialog.question('抓取时间段不能为空!');
					return ;
				}
				if(flightTime==""){
					$.ligerDialog.question('航班时间不能为空!');
					return ;
				}
				
		
			
	  		////// var url="<%=request.getContextPath() %>/taskMonitoringAction!toQuerytoTaskMonitoringJSP.action"
	       // +"?flightNumber="+flightNumber+"&&depCity="+encodeURI(encodeURI(depCity))+
	       // "&&arrCity="+encodeURI(encodeURI(arrCity))+"&&grabChannel="+encodeURI(encodeURI(grabChannel))+
	       // "&&flightTime="+flightTime+"&&endTime="+endTime+"&&startTime="+startTime+"&&carrier="+encodeURI(encodeURI(carrier)); 
	        var url = "<%=request.getContextPath() %>/taskMonitoringAction!toQuerytoTaskMonitoringJSP.action" ;
	        
	        FDCWait.show();
	        $.ajax({
		        url : url,
		 		data:$("#taskRecordForm").serialize(),
		        cache : false, 
		        async : true,
		        type : "POST",
		        dataType:"text",
		       	complete: function(jqXHR, textStatus){
		       		
		       		if(jqXHR.status==200){
		       			FDCWait.hide();
		       			//alert(jqXHR.responseText);
		       			var result = eval("("+jqXHR.responseText+")");
		       			//alert(json.standardPrice);
		       			standardPrice = result.standardPrice;
		       			var data = result.json;
		       		/*    result = parseObj(jqXHR.responseText);
		       			result = jqXHR.responseText;
		       			var data = result.json;
		       			
		       			
		       			standardPrice = result.standardPrice; */
		       			$("#maingrid").ligerGrid({
		       				dataAction:'local',
		       				data:data,
						    columns : columns,
					        width: '100%',
					        pageSize:10,
					        usePager:false,
					        title:'抓取任务信息查询结果',
							showTitle:true,
							height:400,
							pagesizeParmName:'pagesize'
				    	}); 
		       		}
		       		
		       	}
		    });
					/* 	$("#maingrid").ligerGrid({
							    dataAction : 'server',
							    columns : columns,
							    url:url,
						        width: '100%',
						        pageSize:10,
						        usePager:true,
						        title:'抓取任务信息查询结果',
								showTitle:true,
								height:400,
								pagesizeParmName:'pagesize'
					    	});  */  
			});
	 
	})
	
</script>
</html>

